#ifndef MYSOCKET_H
#define MYSOCKET_H

#if defined(LINUX)
#include <sys/types.h>          /* See NOTES */
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

#if defined(LINUX)
#define INVALID_SOCKET -1
#endif


class MySocket
{
public:
    MySocket();
    ~MySocket();

    int  Initialization(int port);

    int GetSocketFd()
    {
        if(_socket_fd > 0)
        {
            return _socket_fd;
        }
    }

    int Accept();

    int  Release();

private:
    int _socket_fd;
};

#endif // MYSOCKET_H
